﻿<%@ Page Title="" Language="C#" MasterPageFile="~/VSFuncionario.Master" AutoEventWireup="true"
    CodeBehind="ConsultaFuncionario.aspx.cs" Inherits="Presentation.ConsultaFuncionario" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style2
        {
            height: 23px;
        }
        .style4
        {
            width: 317px;
        }
        .style6
        {
            width: 44px;
        }
        .style9
        {
            width: 317px;
            height: 23px;
        }
        .style11
        {
            height: 23px;
            width: 44px;
        }
        .style14
        {
            height: 23px;
            width: 33px;
        }
        .style15
        {
            width: 33px;
        }
        .style16
        {
            height: 23px;
            width: 38px;
        }
        .style17
        {
            width: 38px;
        }
        .style21
        {
            width: 252px;
            height: 23px;
        }
        .style22
        {
            width: 117px;
        }
        .style23
        {
            width: 142px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Names="Arial" Font-Size="Medium"
        ForeColor="#0033CC" Text="Consulta Funcionários"></asp:Label>
    <br />
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <br />
    <asp:Panel ID="Panel1" runat="server" Height="133px" Style="margin-left: 46px" Width="887px">
        <table style="width: 100%;">
            <tr>
                <td class="style11">
                    <asp:Label ID="lblNome" runat="server" Text="Nome:"></asp:Label>
                </td>
                <td class="style9">
                    <asp:TextBox ID="txtNome" runat="server" Width="359px"></asp:TextBox>
                </td>
                <td class="style14">
                    &nbsp;
                </td>
                <td class="style16">
                    <asp:Label ID="lblTipo" runat="server" Text="Tipo:"></asp:Label>
                </td>
                </td>
                <td class="style21">
                    <asp:DropDownList ID="ddlTipo" runat="server" DataSourceID="EDStipo" 
                        DataTextField="descricao" DataValueField="id" Width="257px">
                    </asp:DropDownList>
                    <asp:EntityDataSource ID="EDStipo" runat="server" 
                        ConnectionString="name=DBUCNEntities" DefaultContainerName="DBUCNEntities" 
                        EnableFlattening="False" EntitySetName="TBTipoFuncionarios" 
                        EntityTypeFilter="TBTipoFuncionario">
                    </asp:EntityDataSource>
                </td>
                </td>
                <td class="style2">
                </td>
            </tr>
            <tr>
                <td class="style11">
                </td>
                <td class="style9">
                </td>
                <td class="style14">
                </td>
                <td class="style16">
                </td>
                </td>
                <td class="style21">
                </td>
                </td>
                <td class="style2">
                </td>
            </tr>
            <tr>
                <td class="style6">
                    &nbsp;
                </td>
                <td class="style4">
                    &nbsp;<table style="width:113%;">
                        <tr>
                            <td class="style22">
                                <asp:Button ID="btnExibir" runat="server" onclick="btnExibir_Click" 
                                    Text="Exibir" Width="66px" />
                            </td>
                            <td class="style23">
                                <asp:Button ID="btnNovo" runat="server" Text="Novo" Width="75px" />
                            </td>
                            <td>
                                &nbsp;</td>
                        </tr>
                       
                    </table>
                </td>
                <td class="style15">
                    &nbsp;
                </td>
                <td class="style17">
                    &nbsp;
                </td>
                </td>
                <td class="style21">
                    &nbsp;</td>
                </td>
                <td class="style2">
                </td>
            </tr>
        </table>
    </asp:Panel>
    <br />
    <br />
    <asp:Panel ID="Panel2" runat="server" GroupingText="Resultado:">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <asp:GridView ID="grdFuncionarios" runat="server" AutoGenerateColumns="False">
                    <Columns>
                        <asp:BoundField DataField="ID" HeaderText="Código" />
                        <asp:BoundField DataField="Nome" HeaderText="Nome" />
                    </Columns>
                </asp:GridView>
            </ContentTemplate>
        </asp:UpdatePanel>
    </asp:Panel>
    <br />
    <br />
    <br />
</asp:Content>
